﻿<%@ include file="/WEB-INF/views/framework/global.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="${path}/static/stylesheets/default_theme/framework.css" type="text/css" media="screen">
	<title>系统设置</title>
</head>
<body class="kk">
	<!-- 只有注册用户才可以使用本系统 -->
	<!-- 头部菜单 -->
	<header class="header navbar navbar-inverse navbar-fixed-top">
		<br><br>
		<div class="row top_info">
			<div class="col-md-10 rel"><h1 class="fw abs">管理员控制台</h1></div>
			<div class="col-md-2">
				<div class="row">
					<div class="col-md-3">
					</div>
					<div class="col-md-3">
						<a class="l geren" href="<c:url value='/paper/user/update'/>">
							<span class="sys_ctrl glyphicon glyphicon-user" data-toggle="tooltip" data-placement="bottom" data-original-title="个人信息"></span>
						</a>
					</div>
					<div class="col-md-3">
						<a class="l geren" href="<c:url value='/paper/message'/>">
							<span class="sys_ctrl glyphicon glyphicon-envelope"  data-toggle="tooltip" data-placement="bottom" data-original-title="站内消息"></span>
						</a>
					</div>
					<div class="col-md-3">
						<a class="l geren" href="<c:url value='/logout'/>">
							<span class="sys_ctrl glyphicon glyphicon-log-out" data-toggle="tooltip" data-placement="bottom" data-original-title="注销"></span>
						</a>
					</div>
				</div>
			</div>
		</div>
		<div class="line"></div>
		<nav class="nav main_nav">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
			</div>
			<div class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
					<li><a class="menu_item glyphicon glyphicon-folder-close level-top-menu" href="<c:url value='/console/account'/>" data-index="2_0" data-menu="2">用户账号管理</a></li>
					<li><a class="menu_item glyphicon glyphicon-folder-close level-top-menu" href="<c:url value='/console/unit'/>" data-index="2_0" data-menu="2"> 组织机构管理</a></li>
					<%-- <li><a class="menu_item glyphicon glyphicon-folder-close level-top-menu" href="<c:url value='/console/role'/>" data-index="2_0" data-menu="2"> 用户角色授权</a></li> --%>
					<li><a class="menu_item glyphicon glyphicon-folder-close level-top-menu" href="<c:url value='/console/import'/>" data-index="2_0" data-menu="2"> 数据导入</a></li>
				</ul>
			</div><!--/.nav-collapse -->
		</nav>
	</header><!-- /头部菜单 -->
	<iframe id="consoleFrame" frameborder="0" scrolling="no" src="<c:url value='/console/account'/>" width="100%" height="400"></iframe>
	<script type="text/javascript">
		var iframe = document.getElementById("consoleFrame");
		//高度自适应
		(function () {
			var iframeHeight = function() {
				var hash = window.location.hash.slice(1), h;
				if (hash && /height=/.test(hash)) {
					h = hash.replace("height=", "");
					iframe.height = h;
				}
				setTimeout(iframeHeight, 200);
			};
			iframeHeight();
		}) ();
		
		// iframe的src的重定向
		(function () {
			var menuItems = $('.menu_item');
			menuItems.click(function (e) {
				stopDefault(e);
				var $this = $(this),
					href = $this.attr('href');
				iframe.src = href;
			});
		}) ();
	</script>
</body>
</html>
